Python Walkabout Setup

This week will use Python and several scientific packages. Our recommended way to install these is as follows:

Windows / Mac OS X

Anaconda is a distribution of Python that contains all the software needed for this week.

To install, download Anaconda. We recommend clicking on "I want Python 3.4" to install the newest version of Python.

Let one of us know if you'd like instructions for using anything other then Anaconda.

Linux

We'll make use of software called ipython, numpy, scipy, matplotlib, pandas, and (for astronomers) astropy and APLpy.

Debian-based distributions (including Ubuntu and Linux Mint) can install these with:

sudo apt-get install python{,3}-{scipy,matplotlib,pandas,sympy} ipython{,3}

Fedora-based distributions (including OpenSUSE) can install these with:

sudo yum install python{,3}-{matplotlib,pandas} {python3-,}{scipy,sympy}

Astronomy packages can be installed with one of:

sudo apt-get install python{,3}-astropy
sudo yum install {python3-,}APLpy

For any other distributions or problems, contact us ASAP. Anaconda (see above) is also an option.

Prerequisites

Robert Johansson has created a nice series of guides that we will treat as "homework" before each workshop. Be sure to go through lectures 1 before the first workshop, and lectures 2 and 4 before the second workshop. The workshops will be a review and application of the techniques in these lectures, so read them first.

The lectures run in ipython notebooks, so be sure to use the ipython3 notebook or ipython notebook commands to follow along, and create a new Python notebook in the page that pops up. These are similiar to Mathematica notebooks, where code is executed by pressing ctrl-enter.

The python or python3 commands will not be able to run any command starting with ls, cat, or !.